// 事件对象
class EventItem {
    constructor(name, key, operate) {
        //   事件名
        this.name = name;
        // 事件CODE
        this.key = key;
        // 事件操作
        this.operate = operate;
    }
}
// 操作对象
class OperateItem {
    constructor(name, key, invoke) {
        // 操作名
        this.name = name;
        // 操作CODE
        this.key = key;
        // 操作执行函数
        this.invoke = invoke;
    }
}
const clear = new OperateItem('清空', 'clear', 'this.$refs[$target][0].field.value=null;');
const show = new OperateItem('显示', 'show', 'this.$refs[$target][0].field.show=true;');
const hide = new OperateItem('隐藏', 'hide', 'this.$refs[$target][0].field.show=false;');
const enable = new OperateItem('启用', 'enable', 'this.$refs[$target][0].field.enable=true;');
const disable = new OperateItem('禁用', 'disable', 'this.$refs[$target][0].field.enable=false;');
const submit = new OperateItem('提交表单', 'submit', 'this.submit();');
const change = new EventItem('值改变后', 'change');
const click = new EventItem('点击', 'click');
export default {
    events: [change, click],
    operates: [clear, show, hide, enable, disable, submit]
};
